package com.example.aics.assistant;

import dev.langchain4j.service.spring.AiService;
import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;


@AiService(wiringMode = EXPLICIT ,  chatModel = "openAiChatModel", chatMemory = "chatMemory")
public interface ChatMemoryAssistant {
        String chat(String question);

        @UserMessage("今天天气{{it}}")
        String chatWithUserMessage(String question);

        @UserMessage("我是{{userName}}，我来自{{location}}")
        String chatWithUserMessageAndParam(@V("userName")String userName ,@V("location")String location);
}
